package com.wxmp.wxcms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wxmp.wxcms.domain.UserShare;
import com.wxmp.wxcms.mapper.UserShareDao;
import com.wxmp.wxcms.service.UserShareService;
@Service
public class UserShareServiceImpl implements UserShareService {
	@Resource
	private UserShareDao userShareDao;
	@Override
	public UserShare getById(Integer id) {
		return userShareDao.getById(id);
	}

	@Override
	public List<UserShare> getUserShareListByPage(UserShare searchEntity) {
		return userShareDao.getUserShareListByPage(searchEntity);
	}

	@Override
	public void add(UserShare entity) {
		userShareDao.add(entity);
	}

	@Override
	public void update(UserShare entity) {
		userShareDao.update(entity);
	}

	@Override
	public void delete(UserShare entity) {
		userShareDao.delete(entity);
	}

	@Override
	public Integer deleteBatchIds(String[] ids) {
		return userShareDao.deleteBatchIds(ids);
	}

	@Override
	public List<UserShare> getUserShareListByUser(Integer userId) {
		return userShareDao.getUserShareListByUser(userId);
	}

}
